package cn.b.sky.mes.em.service.impl;

import java.util.List;

import javax.annotation.Resource;

import cn.b.sky.mes.em.model.EquipmentScheduledTime;
import org.springframework.stereotype.Service;

import cn.b.sky.mes.em.dao.EquipmentScheduledTimeDao;
import cn.b.sky.mes.em.model.condition.EquipmentScheduledTimeCondition;
import cn.b.sky.mes.em.service.EquipmentScheduledTimeService;

@Service("equipmentScheduledTimeService")
public class EquipmentScheduledTimeServiceImpl implements EquipmentScheduledTimeService {

  @Resource
  EquipmentScheduledTimeDao equipmentScheduledTimeDao;

  @Override
  public List<EquipmentScheduledTime> selectEquipmentScheduledTimeByCondition(
      EquipmentScheduledTimeCondition equipmentScheduledTimeCondition) {
    return equipmentScheduledTimeDao.selectEquipmentScheduledTimeByCondition(equipmentScheduledTimeCondition);
  }

  @Override
  public int selectEquipmentScheduledTimeCount(EquipmentScheduledTimeCondition equipmentScheduledTimeCondition) {
    return equipmentScheduledTimeDao.selectEquipmentScheduledTimeCount(equipmentScheduledTimeCondition);
  }

  @Override
  public EquipmentScheduledTime selectEquipmentScheduledTimeById(long id) {
    return equipmentScheduledTimeDao.selectEquipmentScheduledTimeById(id);
  }

  @Override
  public int selectEquipmentScheduledTimeCountByDate(EquipmentScheduledTime equipmentScheduledTime) {
    return equipmentScheduledTimeDao.selectEquipmentScheduledTimeCountByDate(equipmentScheduledTime);
  }

  @Override
  public void insertEquipmentScheduledTime(EquipmentScheduledTime equipmentScheduledTime) {
    equipmentScheduledTimeDao.insertEquipmentScheduledTime(equipmentScheduledTime);

  }

  @Override
  public void updateEquipmentScheduledTime(EquipmentScheduledTime equipmentScheduledTime) {
    equipmentScheduledTimeDao.updateEquipmentScheduledTime(equipmentScheduledTime);

  }

  @Override
  public void deleteEquipmentScheduledTime(long id) {
    equipmentScheduledTimeDao.deleteEquipmentScheduledTime(id);
  }

}
